<?php
if(!empty($_POST)) { 
	include("../php/class.phpmailer.php");
	include("../php/class.smtp.php"); // note, this is optional - gets called from main class if not already loaded
	$error_msg = "Error sending your email message. Please try again.";
	$ok_msg = "Message has been sent.";
	$body = 'User with info <br /><br />Name: '.$_POST['name'].' <br /> Email address: '.$_POST['email'].' <br /><br />has sent you following message:<br /><br />'.$_POST['message'];
	include("../php/config.mail.php");	
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="robots" content="index, follow" />
		<meta name="keywords" content="smile studio contact, smile studio office, smile studio caribbean, arhitecture design caribbean, smile studio european, arhitecture design european, smile studio north american, arhitecture design north smerican" />
		<meta name="description" content="" />
		<meta name="author" content="Smile's Studio" />
		<meta name="title" content="Smile's Studio - Contact Us" />
		<title>Smile's Studio - Contact Us</title>
		<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
		<link rel="stylesheet" type="text/css" href="../css/style.css"/>
		<!--[if lte IE 7]>
		<link rel="stylesheet" type="text/css" href="../css/style-ie7.css"/>
		<![endif]-->
		<link href="../css/dropdown.linear.columnar.css" media="screen" rel="stylesheet" type="text/css" />
		<link href="../css/default.advanced.css" media="screen" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="../css/ui-lightness/jquery-ui-1.8.12.css"/>
		<script type="text/javascript" src="../js/jquery-1.6.min.js"></script>
		<script type="text/javascript" src="../js/jquery-ui-1.8.12.min.js"></script>
		<script type="text/javascript" src="../js/jquery.logo-hover.js"></script>
		<script type="text/javascript" src="../js/jquery.contact-validation.js"></script>
		<?php if(isset($mailSentInfo)) :?>
		<script type="text/javascript">
		$(document).ready(function(){
			var $dialog = $('<div></div>')
			.html('<?php echo $mailSentInfo;?>')
			.dialog({
				autoOpen: false,
				title: 'Contact Us - Email Sent Information',
				buttons: { "OK": function() { $(this).dialog("close"); }}
			});
			$dialog.dialog('open');
		});
		</script>
		<?php endif; ?>
		<script type="text/javascript" src="../js/jquery.resolution-height.js"></script>
	</head>
	<body>
	<div id="wrapper">
		<div id="header">
			<div id="logo">
				<a id="logolink" href="index.html" title="Smile's Studio Arhitecture Design">
					<span class="logorollover"></span>
					<img class="logoimg" src="../images/smile-studio-architecture-design-logo.png" alt="Smile's Studio Arhitecture Design" width="244" height="53" />
				</a>
			</div>
			<div id="menu">
				<ul id="lang">
					<li class="active"><span title="Current language is English">EN</span></li>
					<li><a href="../fr/smile-studio-contact.php" title="Changer de langue française">FR</a></li>
				</ul>
				<ul id="nav" class="dropdown dropdown-linear dropdown-columnar">
					<li style="padding-left: 215px;"><a href="smile-studio-about-us.html">ABOUT US</a></li>
					<li><a href="smile-studio-services.html">SERVICES</a></li>
					<li class="dir1">PROJECTS
						<ul class="main">
							<li class="dir">Residential
								<ul>
									<li><a class="inner" href="smiles-studio-project-residential-pearl.html" title="PEARL">PEARL</a></li>
									<li><a class="inner" href="smiles-studio-project-residential-horizon-corail.html" title="Horizon Corail">HC</a></li>
									<li><a class="inner" href="smiles-studio-project-residential-brut.html" title="BRUT">BRUT</a></li>
									<li><a class="inner" href="smiles-studio-project-residential-mar.html" title="MAR">MAR</a></li>
									<li><a class="inner" href="smiles-studio-project-residential-th.html" title="TH">TH</a></li>
								</ul>
							</li>
							<li class="dir">Commercial
								<ul>
									<li><a class="inner" href="smiles-studio-project-commercial-plantation-village-mall.html" title="Plantation Village Mall">PVM</a></li>
									<li><a class="inner" href="smiles-studio-project-commercial-ratp.html" title="RATP">RATP</a></li>
								</ul>
							</li>
							<li class="dir">Institutional
								<ul>
									<li><a class="inner" href="smiles-studio-project-institutional-universite-paris-descartes.html" title="UNIVERSITÉ PARIS DESCARTES">UNIVERSITÉ</a></li>
									<li><a class="inner" href="smiles-studio-project-institutional-ecole-osteopathie-et-biomecanique-appliquee.html" title="Ecole d’ostéopathie et biomécanique appliquée">Ecole</a></li>
								</ul>
							</li>
							<li class="dir">Planning
								<ul>
									<li><a class="inner" href="smiles-studio-project-master-planning-cupe-coy.html" title="CUPE COY">CUPE COY</a></li>
								</ul>
							</li>
							<li class="dir">Interior
								<ul>
									<li><a class="inner" href="smiles-studio-project-interior-design.html" title="Interior Design">Design</a></li>
								</ul>
							</li>
						</ul>
					</li>
					<li><a style="padding-right: 0px;" href="smile-studio-contact-us.php">CONTACT</a></li>
				</ul>
			</div>
		</div>
		<div id="background" style="display: block; background-image: url('../images/smile-studio-contactus-back0<?php echo rand(0, 7);?>.jpg');">
			<div id="content">
				<div id="textholder">
					<div id="text_padding">					
						<span class="contactarrow">&nbsp;</span>				
						<h1>Contact</h1>
						<p>For general enquries contact us at:<br /><strong>office@smiles-studio.com</strong></p>
						<p>
							Our office location:<br />
							<strong>Caribbean Office</strong><br />
							Phone: +590.690.42.18.11 or +590.690.723.800 and +590.590.87.19.78<br />
							Address: 6 ZAC de BELLEVUE, 97150 MARIGOT, Saint Martin
						</p>
						<p>
							<strong>European Office</strong><br />
							Phone: +33.143.58.53.92 or +33.668.55.46.61<br />
							Address: 61, rue Rebeval, 75019 PARIS, France
						</p>
						<p>
							<strong>North American Office</strong><br />
							Phone: + 1.416.737.0005<br />
							Address: 21 Tichester Rd. Suite: 901, M5P 1P3, Toronto, Ontario, Canada
						</p>
					</div>
				</div>
				<div id="contactholder">
					<div id="gallery_padding">
						<form name="emailform" action="smile-studio-contact-us.php" onsubmit="return validateForm();" method="post">
							<table>
								<tr>
									<td><label id="yourname">Your name:</label></td>
								</tr>
								<tr>
									<td><div class="inputcontainer"><input class="textinput" type="text" value="<?php if(isset($_POST['name'])){echo $_POST['name'];}?>" name="name" onkeypress="removeIvalidClass('#yourname');" /></div></td>
								</tr>
								<tr>
									<td><label id="youremail">Your email:</label></td>
								</tr>
								<tr>
									<td><div class="inputcontainer"><input class="textinput" type="text" value="<?php if(isset($_POST['email'])){echo $_POST['email'];}?>" name="email" onkeypress="removeIvalidClass('#youremail');" /></div></td>
								</tr>
								<tr>
									<td><label id="msgsubject">Subject:</label></td>
								</tr>
								<tr>
									<td><div class="inputcontainer"><input class="textinput" type="text" value="<?php if(isset($_POST['subject'])){echo $_POST['subject'];}?>" name="subject" onkeypress="removeIvalidClass('#msgsubject');" /></div></td>
								</tr>
								<tr>
									<td><label id="msg">Message:</label></td>
								</tr>
								<tr>
									<td><div class="textareacontainter"><textarea class="textareainput" name="message" cols="20" rows="10" onkeypress="removeIvalidClass('#msg');"><?php if(isset($_POST['message'])){echo $_POST['message'];}?></textarea></div></td>
								</tr>
								<tr>
									<td>
									<label class="requiredfields">All fields are required</label>
									<div class="submit"><input id="send-email" type="submit" title="Send" value="&nbsp;" /></div></td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="footer">
			<div id="footercopy">
			&copy;&nbsp;2011 smile&#39;s <span class="footer-uppercase">STUDIO</span>. All rights reserved. <span class="design">Website by <a href="http://www.designowebteam.com" title="Web Design and Website Development by designowebteam.com" target="_blank">designo<span class="designw">W</span><span class="designt">T</span></a></span>
			</div>
		</div>
	</div>
	</body>
</html>